package com.dd.cloud.user.mapper.phar;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.dd.cloud.user.entity.phar.PharmacyUser;
import com.dd.cloud.user.req.phar.StoreUserPageReq;
import com.dd.cloud.user.res.admin.AdminUserDetailRes;
import com.dd.cloud.user.res.phar.PharOneRuleFeeRes;
import com.dd.cloud.user.res.phar.PharTwoRuleFeeRes;
import com.dd.cloud.user.res.phar.StroeUserPageRes;
import io.lettuce.core.dynamic.annotation.Param;

import java.util.List;

/**
 * @author Lx
 * @version 1.0
 */
public interface PharmacyUserMapper extends BaseMapper<PharmacyUser> {
    /**
     * 查询药房管理员列表
     *
     * @param page
     * @param req
     * @return Page<StroeUserPageRes>
     */
    Page<StroeUserPageRes> getStoreUserPage(Page<StroeUserPageRes> page, StoreUserPageReq req);

    /**
     * 查询药房管理员详情
     *
     * @param id
     * @return AdminUserDetailRes
     */
    AdminUserDetailRes getUserDeatil(Integer id);

    /**
     * 加工类型第一种方式
     */
    List<PharOneRuleFeeRes> getOneRuleList(@Param("typeList") List<Integer> typeList,
                                           @Param("pharId") Integer pharId,
                                           @Param("pharIdList") List<Integer> pharIdList);

    /**
     * 加工类型其他方式
     */
    List<PharTwoRuleFeeRes> getTwoRuleList(@Param("typeList") List<Integer> typeList,
                                           @Param("pharId") Integer pharId,
                                           @Param("pharIdList") List<Integer> pharIdList);

    /**
     * 获取加工类型
     */
    List<PharOneRuleFeeRes> getOneRuleListRes(List<Integer> typeList, Integer pharId);

    /**
     * 获取加工类型
     */
    List<PharTwoRuleFeeRes> getTwoRuleListRes(List<Integer> typeList, Integer pharId);
}
